//
//  BudgetCardViewTest.swift
//  Speek
//
//  Created by MikeHo on 2023/6/26.
//
/*
import SwiftUI

struct BudgetCardViewTest: View {
    
    let testBudget : BudgetDetail
    
    var body: some View {
        
        ZStack{

            VStack{
                //各类别预算图片、标题和日期
                HStack{
                    //各类别预算的名称/消费次数/预算总数
                    
                    Text(testBudget.type)
                        .bold()
                        .font(.title2)
                    Text(testBudget.billAmount)
                        .font(.body)
                    Spacer()
                    Text(testBudget.budgetAmount)
                        .bold()
                        .font(.title2)
                        .foregroundStyle(
                            LinearGradient(
                                gradient: Gradient(colors: [Color(red:1,green: 0.420,blue: 0.349), Color(red:0.647,green: 0.839,blue: 0.247)]),
                                startPoint: .topLeading,
                                endPoint: .bottomTrailing
                            )
                        )
                }
                .padding(.vertical,20)
                
                //各类别预算使用情况
                HStack{
                    Text("剩余")
                    Text(testBudget.leftAmount)
                    Spacer()
                    Text(String(testBudget.percentage)+"%")
                }
                //.padding(.horizontal,20)
                .bold()
                .font(.body)
                
                ProgressView(value: testBudget.percentage, total: 100)
                    .accentColor(Color(red: 0.596, green: 0.847, blue: 0.741)) // 设置进度条颜色
                    .frame(height: 10) // 设置进度条高度
                    //.padding(.horizontal,30)
                    .rotationEffect(.radians(.pi))
                    .clipShape(RoundedRectangle(cornerRadius: 8))
                
                Spacer()
            }
            .padding(.leading,35)
            .padding(.trailing,20)
            .preferredColorScheme(.dark)
            .background(Color(red:0.04,green: 0.09,blue: 0.16).cornerRadius(30))
            .frame(width: 330,height: 130)
            .offset(x:10)
            
            Image(testBudget.type)
                .padding(5)
                .background(Color.white.cornerRadius(20))
                .offset(x:-160)
        }
    }
}
*/

